package com.ipan.weixin.msg.user;

import com.ipan.weixin.msg.AbstractJsonMsg;

/**
 * 修改分组名
 * 
 * @author iPan
 * @version 2013-12-26
 */
public class EditGroupMsg extends AbstractJsonMsg {

	/**
	 * serialVersionUID
	 */
	private static final long serialVersionUID = 4488405228699774809L;
	
	private GroupBean group;
	
	public EditGroupMsg() {}

	public EditGroupMsg(GroupBean group) {
		this.group = group;
	}
	
	public EditGroupMsg(Integer id, String name) {
		this.group = new GroupBean(id, name);
	}
	
	public EditGroupMsg(Integer id, String name, Integer count) {
		this.group = new GroupBean(id, name, count);
	}

	public GroupBean getGroup() {
		return group;
	}

	public void setGroup(GroupBean group) {
		this.group = group;
	}
	
	@Override
	public String toJson() {
		return nonNullBinder.toJson(this);
	}

//	public static void main(String[] args) {
//		System.out.println(new EditGroupMsg(100, "aaa"));
//	}
}
